import {http} from '../../http'

//提交资讯数据
const createInquiries = (params: any) => http.post('/inquiries/inquiriesinfo', params)

//获取资讯数据
const getInquiries = (params: any) => http.get('/inquiries/inquiriesinfo', params)

//修改资讯数据
const changeInquiries = (params: any) => http.put('/inquiries/inquiriesinfo', params)

//删除资讯数据
const deleteData = (params: any) => http.delete('/inquiries/delete', params)

//提交医院信息数据
const createhospitalinfo = (params: any) => http.post('/inquiries/hospitalinfo', params)

//获取医院信息数据
const gethospitalinfo = (params: any) => http.get('/inquiries/hospitalinfo', params)

//修改医院信息数据
const changehospitalinfo = (params: any) => http.put('/inquiries/hospitalinfo', params)

export default {
    createInquiries,
    getInquiries,
    changeInquiries,
    deleteData,
    createhospitalinfo,
    gethospitalinfo,
    changehospitalinfo
}